import request from '@/utils/request'

// 查询快递地址列表
export function listExpinfo(query) {
  return request({
    url: '/expressinfo/expinfo/list',
    method: 'get',
    params: query
  })
}

// 查询快递地址详细
export function getExpinfo(id) {
  return request({
    url: '/expressinfo/expinfo/' + id,
    method: 'get'
  })
}

// 新增快递地址
export function addExpinfo(data) {
  return request({
    url: '/expressinfo/expinfo',
    method: 'post',
    data: data
  })
}

// 修改快递地址
export function updateExpinfo(data) {
  return request({
    url: '/expressinfo/expinfo',
    method: 'put',
    data: data
  })
}

// 删除快递地址
export function delExpinfo(id) {
  return request({
    url: '/expressinfo/expinfo/' + id,
    method: 'delete'
  })
}
